import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";


export function getCellTypeDetail(id){
return request({
    url: '/system/station-cell-type/detail?id=' + id,
    method: 'get'
  })
}

// 查询场站单体点表配置
export function listCellType(stationId) {
  return request({
    url: '/system/station-cell-type/list?stationId=' + stationId,
    method: 'get'
  })
}

export function addCellType(data) {
  return request({
    url: '/system/station-cell-type/add',
    method: 'post',
    data: data
  })
}

export function updateCellType(data) {
  return request({
    url: '/system/station-cell-type/update',
    method: 'post',
    data: data
  })
}

export function delCellType(id) {
  return request({
    url: '/system/station-cell-type/del?id='+id,
    method: 'get'
  })
}

export function batchDelCellType(ids) {

  const params = {
    'ids': ids
  }
  return request({
    url: '/system/station-cell-type/batchDel',
    method: 'post',
    data: params
  })
}
